﻿using System.Web.Mvc;
using System.Web.Routing;

namespace GC_MU.Site
{
	public class RouteConfig
	{
		public static void RegisterRoutes(RouteCollection routes)
		{
			routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
			routes.IgnoreRoute("scripts/{*pathinfo}");
			routes.IgnoreRoute("content/{*pathinfo}");
			routes.IgnoreRoute("{*favicon}", new { favicon = @"(.*/)?favicon.ico(/.*)?" });
			routes.IgnoreRoute("{staticfiles}", new { staticfiles = @".*\.(js|css|gif|jpg|jpeg|png|swf)(/.)?" });
			routes.LowercaseUrls = true;
			routes.MapMvcAttributeRoutes();

			routes.MapRoute("Default", "{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = UrlParameter.Optional });
		}
	}
}
